﻿namespace CodeAgent.Host.Agents;

public class AgentConsoleProtocol
{
    /// <summary>
    /// 消息Id
    /// </summary>
    public string Id { get; set; }
    
    /// <summary>
    /// 类型
    /// text: 文本
    /// function: 函数
    /// confirm: 确认
    /// notify: 通知
    /// error: 错误
    /// done: 完成
    /// </summary>
    public string type { get; set; } = string.Empty;

    /// <summary>
    /// 消息
    /// </summary>
    public string? message { get; set; }

    /// <summary>
    /// 错误信息
    /// </summary>
    public string? error { get; set; }

    /// <summary>
    /// 状态码
    /// </summary>
    public int code { get; set; }
}